#{extends 'main.html'/}

<h1>My Merge Requests</h1>

#{if requests.size()==0}
	<h2>You have no merge Requests</h2>
#{/if}
#{else}
<table border="0" cellspacing="20">
#{list requests,as:'request'}
<tr>
 <th>Merge</th>
  <th>From</th>
 <th>Date</th>
</tr>
<tr>
 <td>
 <ul><li><a href="@{Browse.viewIdea(request.firstIdea.id)}">${request.firstIdea.title}</a></li>
 <li><a href="@{Browse.viewIdea(request.secondIdea.id)}"> ${request.secondIdea.title}</a></li>
 </ul>
 </td>
 
 <td>${request.sender.userName}<td>
 <td>${request.date}</td>
 </tr>
#{/list}
</table>

#{/else}